package com.example.logininterface.entity;

import java.io.Serializable;

public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    private static String Aid;

    private String account;

    private String password;

    private int patrol;

    public static String getAid() {
        return Aid;
    }

    public static void setAid(String aid) {
        User.Aid = aid;
    }

    public User(){};
    //login
    public User(String account, String password , int patrol) {
        this.account = account;
        this.password = password;
        this.patrol = patrol;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getPatrol() {
        return patrol;
    }

    public void setPatrol(int patrol) {
        this.patrol = patrol;
    }

    @Override
    public String toString() {
        return "User{" +
                "account=" + account +
                ", password='" + password + '\'' +
                ",patrol" + String.valueOf( patrol ) + '\'' +
                '}';
    }
}
